setProgress

open fun setProgress(progress: Int)(source)

Sets the current progress to the specified value. Does not do anything if the progress bar is in indeterminate mode.

This method will immediately update the visual position of the progress indicator. To animate the visual position to the target value, use setProgress}.

Parameters

progress

the new progress, between getMin and getMax

See also